Image Scraper
Create an instance of the PyScrappy library to interact
with the class Image Scraper:
#
Imageimage_scrapper()
#Helps in scraping images from "Google", "Yahoo", "Bing". Downloads images in the desired format and and stores it in the desired folder.
#
Return typeNone
#
Parametersdata_name
: Enter the name of object/item whose images you want to scrape/download.
Type: strn_images
: Enter the number of images you want to scrape of download
Type: str
Default: 10img_format
: Enter the format of the image file.
Type: str
Default: 'jpg'
Accepted Values: 'jpg', 'jpeg', 'png', 'svg'folder_name
: Enter the path/folder name where you want to download the images
Type: str
Default: 'images'#
NoteMake sure the data_name is a valid name, and if you enter the directory make sure its a valid one. The scrapper will take some time to work. Wait for the images to get scrapped and downloaded, as it scrapes from all three search engines: Google, Yahoo and Bing.
obj = PyScrappy()obj.image_scrapper(data_name, n_images, img_format, folder_name)